1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module soup.PasswordManagerT;
26 
27 public  import gio.Cancellable;
28 public  import glib.MainContext;
29 public  import soup.Auth;
30 public  import soup.Message;
31 public  import soup.c.functions;
32 public  import soup.c.types;
33 
34 
35 /** */
36 public template PasswordManagerT(TStruct)
37 {
38 	/** Get the main Gtk struct */
39 	public SoupPasswordManager* getPasswordManagerStruct(bool transferOwnership = false)
40 	{
41 		if (transferOwnership)
42 			ownedRef = false;
43 		return cast(SoupPasswordManager*)getStruct();
44 	}
45 
46 
47 	/** */
48 	public void getPasswordsAsync(Message msg, Auth auth, bool retrying, MainContext asyncContext, Cancellable cancellable, SoupPasswordManagerCallback callback, void* userData)
49 	{
50 		soup_password_manager_get_passwords_async(getPasswordManagerStruct(), (msg is null) ? null : msg.getMessageStruct(), (auth is null) ? null : auth.getAuthStruct(), retrying, (asyncContext is null) ? null : asyncContext.getMainContextStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData);
51 	}
52 
53 	/** */
54 	public void getPasswordsSync(Message msg, Auth auth, Cancellable cancellable)
55 	{
56 		soup_password_manager_get_passwords_sync(getPasswordManagerStruct(), (msg is null) ? null : msg.getMessageStruct(), (auth is null) ? null : auth.getAuthStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct());
57 	}
58 }